<?php

!defined('DEBUG') AND exit('Access Denied.');

$route = param(0, 'index');

$aid = admin_token_check();
$admin = db_find_one('user',array('uid'=>$aid));
$user = $admin;

switch ($route) {
	case 'index':			include _include(ADMIN_PATH.'route/index.php'); 		break;
	case 'order':	 		include _include(ADMIN_PATH.'route/order.php'); 		break;
	case 'report':	 		include _include(ADMIN_PATH.'route/report.php'); 		break;
	case 'pay':	 			include _include(ADMIN_PATH.'route/pay.php'); 			break;
	case 'transfer':	 			include _include(ADMIN_PATH.'route/transfer.php'); 			break;
	case 'setting': 		include _include(ADMIN_PATH.'route/setting.php'); 		break;
	case 'user':	 		include _include(ADMIN_PATH.'route/user.php'); 			break;
	case 'article':			include _include(ADMIN_PATH.'route/article.php'); 		break;
	case 'other':			include _include(ADMIN_PATH.'route/other.php'); 		break;
    case 'api':			include _include(ADMIN_PATH.'route/api.php'); 		break;
	default: exit;
}

?>
